home *** CD-ROM | disk | FTP | other *** search
- Path: news.tau.ac.il!usenet
- From: Avi Lev <avil@sapiens.com>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Losing Path in new shell
- Date: Wed, 06 Mar 1996 10:20:59 +0200
- Organization: Sapiens Technologies
- Message-ID: <313D4AEB.6DD5@sapiens.com>
- References: <4h1lbn$86o@news.cs.tu-berlin.de>
- NNTP-Posting-Host: honda.sapiens.co.il
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- Adrian Halamoda wrote:
- >
- > Hello,
- >
- > I have a strange problem with NewShell/NewCLI command.
- > When I run it from my program with System() (asynchronously),
- > it opens own window, but resets Path to defaults (only C: and current
- > directory). How can I open new shell that has the same Path as shell
- > called from WB ? Any hints what's wrong with my code ?
- > Thanks in advance,
-
- your code is fine, it's just not complete that all! you need to
- send the newshell process "cd <directory path>" command
- afterwards, you can do this by making sure the newshell window
- has the input focus and faking keyboard input using the
- input.device to send character messages comprising the command
- one by one into the event chain and don't forget to send <enter>
- at the end, the rest will be done automatically. i used this
- method once and it worked fine i just don't really remember all
- the details...good luck.
-